import time

from selenium import webdriver
from selenium.webdriver.common.by import By

driver=webdriver.Edge()
driver.maximize_window()
driver.get('https://www.jiuxian.com/')
time.sleep(2)

driver.find_element(By.CLASS_NAME,'headerLogin').click()
time.sleep(2)
driver.find_element(By.XPATH,'//*[@id="loginform"]/div/div/div/div/div[1]/div[4]/div/a[1]/i').click()
time.sleep(2)
driver.switch_to.frame(driver.find_element(By.ID,'ptlogin_iframe'))
time.sleep(2)
driver.find_element(By.ID,'switcher_plogin').click()
time.sleep(5)

